﻿<div id="loginButton">
    @if (Request.IsAuthenticated && ViewData["Logoff"] == null)
    {
        <text><b>@Context.User.Identity.Name</b>&nbsp; </text><button type="button" onclick="signOut();" class="btn btn-sm btn-default" role="button">Выйти</button>
    }
    else
    {
        <button type="button" onclick="showLogonDialog();" class="btn btn-sm btn-default" role="button">Войти</button>
    }
</div>